/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import net.minecraft.entity.Entity;
/*    */ import net.minecraft.entity.player.EntityPlayer;
/*    */ import net.minecraft.entity.player.EntityPlayerMP;
/*    */ import net.minecraft.network.Packet;
/*    */ import net.minecraft.network.play.server.SPacketSetExperience;
/*    */ import net.minecraft.network.play.server.SPacketUpdateHealth;
/*    */ import net.minecraft.util.text.TextFormatting;
/*    */ import net.minecraft.world.GameType;
/*    */ import org.apache.logging.log4j.Level;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class it
/*    */   implements Runnable
/*    */ {
/*    */   public it(eq.eos/moe/dragoncore/pu eos/moe/dragoncore/pu1, EntityPlayerMP paramEntityPlayerMP, eq parameq) {}
/*    */   
/*    */   public void run() {
/* 61 */     Entity entity = this.w.func_71121_q().func_73045_a(this.q.q);
/* 62 */     if (entity != null && qz.w.v((EntityPlayer)this.w)) {
/*    */       try {
/* 64 */         GameType gameType = null;
/* 65 */         if (entity instanceof EntityPlayerMP)
/* 66 */           gameType = ((EntityPlayerMP)entity).field_71134_c.func_73081_b(); 
/* 67 */         entity.func_70020_e(this.q.g);
/* 68 */         qz.v(Level.TRACE, this.w.func_70005_c_() + " edited a tag -- Entity ID #" + this.q.q);
/* 69 */         qz.v(this.q.g);
/* 70 */         if (entity instanceof EntityPlayerMP) {
/*    */ 
/*    */           
/* 73 */           EntityPlayerMP entityPlayerMP = (EntityPlayerMP)entity;
/* 74 */           entityPlayerMP.func_71120_a(entityPlayerMP.field_71069_bz);
/* 75 */           GameType gameType1 = entityPlayerMP.field_71134_c.func_73081_b();
/* 76 */           if (gameType != gameType1) {
/* 77 */             entityPlayerMP.func_71033_a(gameType1);
/*    */           }
/* 79 */           entityPlayerMP.field_71135_a.func_147359_a((Packet)new SPacketUpdateHealth(entityPlayerMP.func_110143_aJ(), entityPlayerMP
/* 80 */                 .func_71024_bL().func_75116_a(), entityPlayerMP.func_71024_bL().func_75115_e()));
/* 81 */           entityPlayerMP.field_71135_a.func_147359_a((Packet)new SPacketSetExperience(entityPlayerMP.field_71106_cc, entityPlayerMP.field_71067_cb, entityPlayerMP.field_71068_ca));
/*    */           
/* 83 */           entityPlayerMP.func_71016_p();
/* 84 */           entityPlayerMP.func_70634_a(entityPlayerMP.field_70165_t, entityPlayerMP.field_70163_u, entityPlayerMP.field_70161_v);
/*    */         } 
/* 86 */         qz.w.v((EntityPlayer)this.w, "Your changes have been saved", TextFormatting.WHITE);
/* 87 */       } catch (Throwable throwable) {
/* 88 */         qz.w.v((EntityPlayer)this.w, "Save Failed - Invalid NBT format for Entity", TextFormatting.RED);
/* 89 */         qz.v(Level.WARN, this.w.func_70005_c_() + " edited a tag and caused an exception");
/* 90 */         qz.v(this.q.g);
/* 91 */         qz.v("EntityNBTPacket", "Handler.onMessage", throwable);
/*    */       } 
/*    */     } else {
/* 94 */       qz.w.v((EntityPlayer)this.w, "Save Failed - Entity does not exist", TextFormatting.RED);
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\it.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */